<div class="right01"><img src="content/images/04.gif" /> <a href="<?php echo site_url(); ?>/C_Main/index/">主页</a></div>
<div id="content">
    <div class="man_div">
        <div class="show_div" style="width: 98%">
            <div class="show_title"><span style="float: left">到期提醒</span><span style="float: right"><a href="<?php echo site_url(); ?>/customers/C_Customers_List/main/1">更多</a></span></div>
            <div class="show_content">
                <table class="tables">
                    <tr>
                        <th>新郎</th>
                        <th>新娘</th>
                        <th>结婚日期</th>
                        <th>取件日期</th>
                        <th>套系</th>
                    </tr>
                    <?PHP
                    if (is_array($maturity)) {
                        foreach ($maturity as $maturity_item) {
                            ?>
                            <tr>
                                <td><?PHP echo $maturity_item['cu_groom']; ?></td>
                                <td><?PHP echo $maturity_item['cu_bride']; ?></td>
                                <td><?PHP echo date('Y-m-d', strtotime($maturity_item['cu_marrydate'])); ?></td>
                                <td><?PHP echo date('Y-m-d', strtotime($maturity_item['cu_takedate'])); ?></td>
                                <td><?PHP echo $maturity_item['se_name']; ?></td>
                            </tr>
                            <?PHP
                        }
                    }
                    ?>
                </table>
            </div>
        </div>
        <div class="show_div">
            <div class="show_title"><span style="float: left">结婚周年提醒</span><span style="float: right"><a href="<?php echo site_url(); ?>/customers/C_Customers_List/main/2">更多</a></span></div>
            <div class="show_content" style="height: 290px;">
                <table class="tables">
                    <tr>
                        <th>新郎</th>
                        <th>新娘</th>
                        <th>结婚日期</th>
                        <th>手机</th>
                        <th>固定电话</th>
                        <th>周年</th>
                    </tr>
                    <?PHP
                    if (is_array($anniversary)) {
                        foreach ($anniversary as $anniversary_item) {
                            ?>
                            <tr>
                                <td><?PHP echo $anniversary_item['cu_groom']; ?></td>
                                <td><?PHP echo $anniversary_item['cu_bride']; ?></td>
                                <td><?PHP echo date('Y-m-d', strtotime($anniversary_item['cu_marrydate'])); ?></td>
                                <td><?PHP echo $anniversary_item['cu_cellphone']; ?></td>
                                <td><?PHP echo $anniversary_item['cu_phone']; ?></td>
                                <td><?PHP echo date('Y') - date('Y', strtotime($anniversary_item['cu_marrydate'])); ?></td>
                            </tr>
                            <?PHP
                        }
                    }
                    ?>
                </table>
            </div>
        </div>
        <div class="show_div">
            <div class="show_title"><span style="float: left">最新订单</span><span style="float: right"><a href="<?php echo site_url(); ?>/customers/C_Customers_List/main/3">更多</a></span></div>
            <div class="show_content" style="height: 290px;">
                <table class="tables">
                    <tr>
                        <th>新郎</th>
                        <th>新娘</th>
                        <th>结婚日期</th>
                        <th>取件日期</th>
                        <th>套系</th>
                    </tr>
                    <?PHP
                    if (is_array($new)) {
                        foreach ($new as $new_item) {
                            ?>
                            <tr>
                                <td><?PHP echo $new_item['cu_groom']; ?></td>
                                <td><?PHP echo $new_item['cu_bride']; ?></td>
                                <td><?PHP echo date('Y-m-d', strtotime($new_item['cu_marrydate'])); ?></td>
                                <td><?PHP echo date('Y-m-d', strtotime($new_item['cu_takedate'])); ?></td>
                                <td><?PHP echo $new_item['se_name']; ?></td>
                            </tr>
                            <?PHP
                        }
                    }
                    ?>
                </table>
            </div>
        </div>
    </div>
</div>